package com.herui.ota.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.mlnx.common.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

public class LightBaseEntity extends BaseEntity {

    @JsonIgnore
    @TableField(exist = false)
    @ApiModelProperty(value = "描述")
    private String remark;// 描述

    @ApiModelProperty("创建人")
    private String creater;
    @JsonIgnore
    @TableField(
            exist = true
    )
    @ApiModelProperty("创建时间")
    private Date createTime;
    @JsonIgnore
    @TableField(
            exist = true
    )
    @ApiModelProperty("更新人")
    private String editor;
    @ApiModelProperty("更新时间")
    @JsonIgnore
    @TableField(
            exist = true,
            update = "now()"
    )
    private Date editTime = new Date();
}
